﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master"
    Inherits="System.Web.Mvc.ViewPage<Veteran_cms.Models.category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <!-- Validation form -->
    <%using (Html.BeginForm("Details", "ManageCategory", new { id = Model.category_id }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form", id = "validate" }))
      { %>
    <!-- Multiple files uploader -->
    <fieldset>
        <div class="widget">
            <div style="float: right">
                <a href="<%=Url.Action("IndexCategory","ManageCategory") %>" title="" class="backTo"
                    style="margin: 5px;">
                    <img src="../../images/adminSite/icons/prev.png" alt="" class="icon" /><span>Trở về</span></a></div>
            <div class="title">
                <img src="../../Images/adminSite/icons/dark/pencil.png" alt="" class="titleIcon" /><h6>
                    Thông tin liên hệ về công ty</h6>
            </div>
            <%if (ViewData["Msg"] != null)
              {%>
            <div class="nNote nSuccess hideit">
                <p>
                    <strong>
                        <%=ViewData["Msg"]%></strong></p>
            </div>
            <%} %>
            <div class="formRow">
                <label>
                    Tiêu đề:<span class="req">*</span></label>
                <div class="formRight">
                    <%:Html.TextBoxFor(model => model.name, new { @class = "validate[required,maxSize[100]]", id = "req" })%></div>
                <div class="clear">
                </div>
            </div>
            <div class="formRow">
                <label>
                    Tóm lượt:<span class="req">*</span></label>
                <div class="formRight">
                    <%:Html.TextAreaFor(model => model.slug, new { @class = "validate[required,maxSize[255]]", id = "textareaAutoGrow", rows = "8", cols = "" })%></div>
                <div class="clear">
                </div>
            </div>
            <div class="formRow">
                <label>
                    Thư mục cha:<span class="req">*</span></label>
                <div class="formRight">
                    <%:Html.DropDownListFor(model => model.parent_id, ViewData["categoryPanrent"] as SelectList)%></div>
                <div class="clear">
                </div>
            </div>
            <div class="formRow">
                <div class="formRight">
                    <%=Html.CheckBoxFor(mode=>mode.visible) %><label for="check1">Cho phép hiển thị</label>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        <div class="widget">
            <%using (Html.BeginForm("Delete", "ManageCategory", new { id = Model.category_id }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form" }))
              { %>
            <div class="formSubmit">
                <input type="submit" value="Xóa" class="redB" /></div>
            <%} %>
            <div class="formSubmit">
                <input type="submit" value="Cập nhật" class="blueB" /></div>
            <%} %>
            <div class="clear">
            </div>
            <div>
                <%:Html.HiddenFor(model => model.category_id)%></div>
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleAreaPlaceHolder" runat="server">
</asp:Content>
